<template>
    <view class="bg-content">
        <u-cell-group v-if="tbStore">
            <u-cell-item title="店铺名称" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.name | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
            <u-cell-item title="店铺标题" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.title | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
            <u-cell-item title="店铺副标题" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.subTitle | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
            <u-cell-item title="店铺编号" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.code | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
            <u-cell-item title="店铺简介" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.introduction | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
            <u-cell-item title="工作日" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.businessDays | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
            <u-cell-item title="营业时间段" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.businessDays | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
            <u-cell-item title="店铺类型" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.storeLabel | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
            <u-cell-item title="设施服务" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.featureLabel | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
            <u-cell-item title="店铺地址" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.address | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
            <u-cell-item title="联系电话" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.phone | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
            <u-cell-item title="开店时间" :arrow="false" use-label-slot>
                <view slot="label">
                    {{tbStore.createTime | toEmptyStr('未设置')}}
                </view>
            </u-cell-item>
        </u-cell-group>
    </view>
</template>

<script>

    import {TbStoreService} from "../../../../dev/services/tb-store.service";

    export default {
        data() {
            return {
                tbStore: null
            }
        },
        onLoad(options) {
            const _self = this;
            new TbStoreService().findTbStoreById(this.urlParams.storeId).then(result => {
                _self.tbStore = result;
            });
        },
        methods: {}
    }
</script>

<style lang="scss" scoped>
</style>
